<?php
session_start();
header('content-type:text/html;charset=utf-8');
ini_set('date.timezone','Asia/Shanghai');
require ('includes/common.inc.php');
if(!isset($_SESSION['admin_sess'])||substr($_SESSION['admin_sess'],0,32)!=md5('root'))
{
    _location('请先登录~','admin_login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title><?php echo $title;?> - 后台管理</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.css" rel="stylesheet">

    <!-- Add custom CSS here -->
    <link href="css/sb-admin.css" rel="stylesheet">
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
    <!-- Page Specific CSS -->
    <link rel="stylesheet" href="css/morris-0.4.3.min.css">
</head>
<body>
<div id="wrapper">
    <!-- Sidebar -->
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="index.html">后台管理系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
            <ul class="nav navbar-nav side-nav">
                <li id="admin_home"><a href="admin_index.php"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li id="admin_article"><a href="admin_article.php"><i class="fa fa-bar-chart-o"></i> 帖子管理 </a></li>
                <li id="admin_user"><a href="admin_user.php"><i class="fa fa-table"></i> 用户管理</a></li>
                <li id="admin_photo"><a href="admin_dir.php"><i class="fa fa-camera"></i> 相册管理</a></li>
                <li id="admin_system"><a href="admin_system.php"><i class="fa fa-edit"></i> 系统管理</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right navbar-user">
                <li><a href="index.php" target="_black">前台页面</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> Admin </a>
                    <ul class="dropdown-menu">
                        <li><a href="admin_login.php">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </nav>
    <div id="page-wrapper">